package com.fingard.dsp.bank.directbank.weixin01;

import com.fingard.dsp.bank.directbank.bankInterface.IAcceptNotice;
import com.fingard.generalobj.NoticeReq;
import com.fingard.generalobj.NoticeResp;
import com.fingard.net.listener.SocketReceiver;

public class WEIXIN01AcceptNotice extends WEIXIN01Base implements IAcceptNotice {
    @Override
    public NoticeResp dealNotice(NoticeReq pNtReq) throws Exception {
        NoticeResp resp = new NoticeResp();
        String p_req = pNtReq.getReqString();
        WriteBankLogLn("接收到请求：" + pNtReq.getFullString());

        String tmpStrRet = "<xml>\r\n" +
                "<return_code><![CDATA[SUCCESS]]></return_code>\r\n" +
                "<return_msg><![CDATA[OK]]></return_msg>\r\n" +
                "</xml>";
        WriteBankLogLn("响应："+tmpStrRet);
        resp.respBytes = tmpStrRet.getBytes(pNtReq.reqCharset);
        return resp;
    }

    @Override
    public void getContentLength(SocketReceiver p_receiver) throws Exception {
    }
}